package com.juben.svr.mapper;

import com.juben.svr.domain.jb_messages;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface JubenMessageMapper {

    int insert(jb_messages jb_messages);

    List<jb_messages> selectMsgList(@Param("userId") Integer userId,@Param("toUserId") Integer toUserId);

    void  msgRead(@Param("fromUserId") Integer fromUserId,@Param("toUserId") Integer toUserId);


}
